package com.bocom.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.bocom.entity.Users;

@Controller
public class JsonController {
	
	@ResponseBody
	@RequestMapping("/getJson")
	public Users getUserInfo(){
		Users user = new Users();
		user.setPassword("1234");
		user.setId(1111);
		user.setUsername("jsontest");
		return user;
	}
}
